package com.lonely.fx.table_view.entity;

import javafx.beans.property.SimpleBooleanProperty;

/**
 * @date: 2022-08-02 21:36
 * @author: ztkj-hzb
 * @description:
 **/
public class Student {

    /**
     * 学生姓名
     */
    private String name;

    /**
     * 性别
     */
    private String sex;

    /**
     * 分数
     */
    private Double score;

    /**
     * 是否及格
     */
    private SimpleBooleanProperty pass = new SimpleBooleanProperty();

    public Student() {
    }

    public Student(String name, String sex, Double score, Boolean pass) {
        this.name = name;
        this.sex = sex;
        this.score = score;
        this.pass.set(pass);
    }

    public String getName() {
        return name;
    }

    public Student setName(String name) {
        this.name = name;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public Student setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public Double getScore() {
        return score;
    }

    public Student setScore(Double score) {
        this.score = score;
        return this;
    }

    public Boolean getPass() {
        return pass.get();
    }

    public Student setPass(Boolean pass) {
        this.pass.set(pass);
        return this;
    }


    public SimpleBooleanProperty getPassProperty(){
        return this.pass;
    }
}
